package com.ygsoft.tianlu_mall.service;

import java.util.HashMap;
import java.util.List;

public interface CartService {

    //添加商品到购物车
    List<HashMap<String,Object>> checkGoodsInCart(int user_id, int goods_id);
    List<HashMap<String,Object>> checkGoodsNotMine(int user_id, int goods_id);
    void addGoodsToCart(int user_id, int goods_id);

    //在购物车删除商品
    void deleteGoodsFromCart(int user_id, int goods_id);

    //获得购物车的信息
    HashMap<String,Object> getGoodsInfoFromCart(int user_id);

    void clearFailedGoods(int user_id, int goods_id);

    int getCartCount(int user_id);
}
